package com.zy.explore.db.infrastructure.plugins.multidbsupport.sqlchange.function;

import java.util.List;

/**
 * sql中函数（方法）对象
 *
 * @author 中国印
 * @date 2022年02月16日 23:12:56
 */
public class SqlFunction {
	/** 函数名称  */
	private String name;
	/** 参数 */
	private List<String> argList;
	/** 整个函数在sql中的开始位置 */
	private int start;
	/** 整个函数在sql中的结束位置 */
	private int end;
	
	public SqlFunction(String name, List<String> argList, int start, int end) {
		super();
		this.name = name;
		this.argList = argList;
		this.start = start;
		this.end = end;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getStart() {
		return start;
	}
	public void setStart(int start) {
		this.start = start;
	}
	public int getEnd() {
		return end;
	}
	public void setEnd(int end) {
		this.end = end;
	}
	public List<String> getArgList() {
		return argList;
	}
	public void setArgList(List<String> argList) {
		this.argList = argList;
	}

	@Override
	public String toString() {
		return "SqlFunction [name=" + name + ", argList=" + argList + ", start=" + start + ", end=" + end + "]";
	}
	
	
	
}
